package extractionStockageDonnees;


/**
 * 
 * @author simon
 *
 */
public interface ICourse {

	/**
	 * 
	 * @param XML
	 *            The data.
	 */
	public void init(String XML);

	/**
	 * 
	 * @param number
	 *            The number of the runner.
	 * @return The name of the runnner.
	 */
	public String getName(int number);

	/**
	 * 
	 * @param number
	 *            The number of the runner.
	 * @return The surname of the runnner.
	 */
	public String getSurname(int number);

	/**
	 * @param number
	 *            The number of the runner.
	 * @return The value on moutain of the runnner.
	 */
	public int getMoutain(int number);

	/**
	 * 
	 * @param number
	 *            The number of the runner.
	 * @return The value on plain of the runnner.
	 */
	public int getPlain(int number);

	/**
	 * 
	 * @param number
	 *            The number of the runner.
	 * @return The value on 'against time' of the runnner.
	 */
	public int getTime(int number);

	/**
	 * 
	 * @return If there is a next step or not.
	 */
	public boolean hasNextStep();

	/**
	 * Get the next Step of the course.
	 */
	public void nextStep();

	/**
	 * Reset the pointer of the course to the first step.
	 */
	public void resetStep();

	/**
	 * 
	 * @return The current step.
	 */
	public IStep getCurrentStep();

	/**
	 * 
	 * @return The numbers of all the runners [79, 66,...]
	 */
	public int[] getRunnersNumber();

}
